package com.dlc.shop.systemtest.data.amount;

import com.dlc.shop.bean.app.param.ChangeShopCartParam;
import com.dlc.shop.systemtest.api.amount.SkuApi;

/**
 * @author lanhai
 */
public class ShopCartData {
    public static ChangeShopCartParam getChangeShopCartParam(Long prodId,Long shopId,Integer count){
        ChangeShopCartParam changeShopCartParam = new ChangeShopCartParam();
        changeShopCartParam.setBasketId(0L);
        changeShopCartParam.setShopId(shopId);
        changeShopCartParam.setProdId(prodId);
        changeShopCartParam.setCount(count);
        changeShopCartParam.setSkuId(SkuApi.getAllSkuList(prodId).get(0).getSkuId());
        changeShopCartParam.setIsCheck(1);
        return changeShopCartParam;
    }

    public static ChangeShopCartParam getDistributionProdChangeShopCartParam(Long prodId, Long shopId, Integer count, String distributionCardNo ) {
        ChangeShopCartParam changeShopCartParam = new ChangeShopCartParam();
        changeShopCartParam.setBasketId(0L);
        changeShopCartParam.setShopId(shopId);
        changeShopCartParam.setProdId(prodId);
        changeShopCartParam.setCount(count);
        changeShopCartParam.setSkuId(SkuApi.getAllSkuList(prodId).get(0).getSkuId());
        changeShopCartParam.setIsCheck(1);
        changeShopCartParam.setDistributionCardNo(distributionCardNo);
        return changeShopCartParam;
    }
}
